package com.sgh.springsecurity.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description:
 * @Author: sgh
 * @Date: 2024/12/15
 */
@Controller
public class LoginController {

    @RequestMapping("/loginPage")
    public String loginPage() {
        return "login";
    }

    @RequestMapping("/toHomePage")
    public String toHomePage() {
        return "homePage";
    }

    @RequestMapping("/toError")
    public String toError() {
        return "error";
    }

    @RequestMapping("/info")
    public String info() {
        return "info";
    }

    @RequestMapping("/logout")
    public String logout() {
        return "login";
    }
}
